<?php


namespace app\services\exam;


use app\dao\exam\ExamIllegalDao;
use app\exceptions\AuthException;
use app\services\BaseService;

class ExamIllegalService extends BaseService
{
    public function __construct(ExamIllegalDao $dao)
    {
        $this->dao = $dao;
    }

    //---------------------------------------------api--------------------------------------------

    /*
     * 保存考试违规记录
     */

    public function createInformation(array $where){
        $data = $this->dao->createInformation($where);
        if (!$data){
            throw new AuthException('保存失败');
        }
        return '保存成功';
    }
}